package com.xiaoh.dormitoryrepairreportbackend.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 维修工技能表
 */
@TableName(value = "maintenance_skill")
@Data
@Schema(description = "维修工技能表")
public class MaintenanceSkill implements Serializable {

    /**
     * 维修工用户ID
     */
    @TableField(value = "user_id")
    @Schema(description = "维修工用户ID")
    private Long userId;

    /**
     * 维修类别ID
     */
    @TableField(value = "category_id")
    @Schema(description = "维修类别ID")
    private Integer categoryId;

    /**
     * 创建时间
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
